package com.wei.czz.framework.rabbitMQ.message.blog;

import com.wei.czz.common.tool.BaseEntity;
import lombok.Getter;
import lombok.Setter;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wei
 * date: 2022-03-04 17:44:36
 * className: BlogCommentMessage 博客评论消息类
 * version: 1.0
 * description:
 */
@Getter
@Setter
public class BlogCommentMessage extends BaseEntity {

    /**
     * 博客评论id
     */
    private Long commentId;

    /**
     * 消息类型[0-点赞]
     */
    private Integer type;

    /**
     * 变化数值（大于0，增加。小于0，减少）
     */
    private Integer num;

    public BlogCommentMessage() {
    }

    public BlogCommentMessage(Long commentId, Integer type, Integer num) {
        this.commentId = commentId;
        this.type = type;
        this.num = num;
    }
}
